/**
 * 公共基础接口封装
 */
import request from '../utils/request'

// 登录
export const login = (data) => {
  return request({
    method: 'POST',
    url: '/login',
    data
  })
}

// 获取菜单
export const menus = () => {
  return request({
    method: 'GET',
    url: '/menus'
  })
}